<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="./ressources/bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
        <link href="./ressources/layout.css" rel="stylesheet" type="text/css" />
        <link href="./mainStyle.css" rel="stylesheet" type="text/css" />
        <link rel="shortcut icon" type="image/x-icon" href="./public/images/log_cgg.gif" />

        <title><ui:insert name="title">Crew Intranet: JMT - #{gestionheaderBean.titilePageCourrant} </ui:insert></title>
    </h:head>

    <h:body >
        <div class="navbar navbar-fixed-top" style="z-index: 1000;">
            <div class="navbar-inner">
                <h:form>
                    <p:menubar>
                        <p:menuitem action="#{redirectionBean.getRedirectionAccueil}"  value="Accueil"  
                                    styleClass="#{view.viewId == '/index.xhtml' ? 'ui-state-active menuItemSelectionner' : ''}"
                                    />
                        <p:menuitem action="#{redirectionBean.getRedirectionListeAmploye}" value="Personnel" 
                                    styleClass="#{view.viewId == '/listeTravailleur.xhtml' || 
                                                  view.viewId == '/gestionMission.xhtml' || 
                                                  view.viewId == '/reglageformulaire.xhtml' ||
                                                  view.viewId == '/ajouterUnTravailleur.xhtml' || 
                                                  view.viewId == '/detailTravailleur.xhtml' ||
                                                  view.viewId == '/editerUnTravailleur.xhtml'
                                                  ? 'ui-state-active menuItemSelectionner' : ''}"
                                    />
                        <p:menuitem action="#{redirectionBean.getRedirectionAccueilVehicule}" value="Véhicule"
                                    styleClass="#{view.viewId == '/accueilVehicule.xhtml' ||
                                                  view.viewId == '/creerUnVehicule.xhtml' || 
                                                  view.viewId == '/detailVehicule.xhtml' || 
                                                  view.viewId == '/editerUnlVehicule.xhtml'||
                                                  view.viewId == '/gestionMarque.xhtml'||
                                                  view.viewId == '/detailVehiculeView.xhtml'
                                                  ? 'ui-state-active menuItemSelectionner' : ''}"
                                    />
                        <p:menuitem action="#{redirectionBean.getRedirectionRadioOperateurJMS}" value="Radio-Opérateur"
                                    styleClass="#{view.viewId == '/accueilJms.xhtml'||
                                                  view.viewId == '/besoinsJms.xhtml'||
                                                  view.viewId == '/affectationsJms.xhtml'||
                                                  view.viewId == '/radiooperateurJms.xhtml'
                                                  ? 'ui-state-active menuItemSelectionner' : ''}"
                                    />
                        
                         <p:menuitem  value="Migration Base de donnée" action="#{redirectionBean.getRedirectionMigrationDB}"
                                    styleClass="#{view.viewId == '/migrationdb.xhtml'||
                                                  view.viewId == '/migrationdbconfigaccess.xhtml'||
                                                  view.viewId == '/migrationdbaccess.xhtml'
                                                  ? 'ui-state-active menuItemSelectionner' : ''}"
                                    />
                         
                        <ui:insert name="top"></ui:insert>

                    </p:menubar>
                </h:form>
            </div>
        </div>
        <div class="container-fluid" >
            <div class="row-fluid">
                <p:layout id="layout" style="width: 100%;height: 100%">  
                    <p:layoutUnit position="west" rendered="#{view.viewId == '/index.xhtml' ? 'false' : 'true'}" size="210" header="Menu" resizable="true" collapsible="true" >  
                        <ui:insert name="left"></ui:insert>
                    </p:layoutUnit>  

                    <p:layoutUnit position="center">  
                        <ui:insert name="content"></ui:insert>
                    </p:layoutUnit>  
                </p:layout>
            </div>

        </div>
        <div class="bottom">
            <!--            <p:stack icon="/public/images/stack.png">  
                            <p:menuitem value="Logout" icon="/public/images/logout.png" url="#"/> 
                        </p:stack>  -->
        </div>
        <!--<script type="text/javascript" src="./ressources/bootstrap/js/bootstrap.js" ></script>-->
    </h:body>


</html>
